﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UserInfo.ascx.cs" Inherits="HRP.Private.UserInfo" %>
<%@ Register Src="~/Private/MenuPrivado.ascx" TagName="MenuPrivado" TagPrefix="hrp" %>


<div class="header sidebar rows">
    <div class="logo animated bounceIn">
        <h1><a href="/Private/main.aspx">
            <img src="/images/logo.png" alt="Logo">
            HRPortal</a></h1>
    </div>
</div>
<div class="body rows scroll-y animated fadeInLeftBig">
    <div class="sidebar-inner slimscroller">
        <div class="media">
            <a class="pull-left" href="#">
                <img class="media-object img-circle" src="/images/person.png" alt="Avatar">
            </a>
            <div class="media-body">
                Bem Vindo,
						<h4 class="media-heading"><strong>
                            <asp:Label ID="nameLB" runat="server" Text="Label"></asp:Label></strong></h4>
                <a href="/private/utilizadores/editar.aspx?id=<%=userid %>">Editar</a>
                <a class="md-trigger" data-modal="logout-modal-alt">Sair</a>
            </div>
        </div>

        <div id="search">
            <div id="searchContent" style="position: relative;">
                <input type="text" class="form-control search" placeholder="Pesquise aqui..." id="quickSearch">
                <i class="fa fa-search" onclick="search()"></i>
                <script type="text/javascript">

                    $('#quickSearch').keypress(function (e) {
                        if (e.keyCode == 13) {
                            var text = $('#quickSearch').val();
                            console.log("vou pesquisar");
                            window.location = '/private/Pesquisa/Resultados.aspx?text=' + text;
                            return false;
                        }
                    });

                    function search() {
                        var text = $('#quickSearch').val();
                        console.log("vou pesquisar");
                        window.location = '/private/Pesquisa/Resultados.aspx?text=' + text;
                    }
                </script>
            </div>
        </div>

        <hrp:MenuPrivado runat="server" ID="MenuPrivado"></hrp:MenuPrivado>
    </div>
</div>
